<?php
    header('Content-type:text/json');
    require "../connection.php";
    $user_id = $_POST['user_id'];
    $sql = "select user_balance from user where id = '$user_id'";
    $res = $conn->doSql($sql);
    echo json_encode($res);
?>
